str ={}

str[0] = "sd#vt\n"..
	"english-portuguese\n"..
	"lesson 01\n"..
	"book / livro\n"..
	"table / mesa\n"..
	"source / fonte\n"..
	"lesson 2\n"..
	"code \ código"

str[1] = "sd#vt\n"..
	"deutsch-portuguese\n"..
	"lektion 01\n"..
	"buche / livro\n"..
	"Ja / sim\n"..
	"nacht / noite"


ut = {}

function ut:getTitles()

	num = table.getn(str)
	titles = {}
	index=0
	for i=0,num do -- each table index
		for title in string.gfind(str[i], "(%S+-%S+)") do
			titles[index] = title
			index = index +1
			print(title)
		end
	end

	return titles
end


tests = ut:getTitles()

gui.control{type="list",lines=10, columns=31,list=tests}
gui.main()
